
// 导入Vue
import Vue from 'vue'
// 导入vuex
import Vuex from 'vuex'
// 导入state
import state from './state'
// 导入actions
import actions from './actions'
// 导入mutations
import mutations from './mutations'
// 导入getters
import getters from './getters'
// 引入模块
import app from './modules/app'
// import user from './modules/user'
// import permission from './modules/permission'
// 使用Vuex
Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app
  },
  state,
  getters,
  actions,
  mutations
})
// 导出
// store.state.app
// store.state.user
// store.state.permission
export default store
